package com.example.natatorium_management.result.restful;

public enum ResponseEunm {
    SUCCESS("200","成功"),
    USERNAME_OR_PASSWORD_INVALIDATE("300","用户名或者密码错误"),

    USER_ALREADY_EXISTS("301","用户已存在"),

    PASSWORD_CANNOT_NULL("302","新密码不能为空"),

    ADD_FAIL("305","添加失败"),

    UPDATE_FAIL("400","更新失败"),

    DELETE_FAIL("405","删除失败"),

    ERROR("500","发生未知错误请联系管理员");

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResponseEunm(String code, String message) {
        this.code = code;
        this.message = message;
    }
}